package org.jeecg.modules.dlxj.service.impl;

import org.jeecg.modules.dlxj.entity.DlxjPatrtolTask;
import org.jeecg.modules.dlxj.mapper.DlxjPatrtolTaskMapper;
import org.jeecg.modules.dlxj.service.IDlxjPatrtolTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: dlxj_patrtol_task
 * @Author: lzl
 * @Date:   2022-07-22
 * @Version: V1.0
 */
@Service
public class DlxjPatrtolTaskServiceImpl extends ServiceImpl<DlxjPatrtolTaskMapper, DlxjPatrtolTask> implements IDlxjPatrtolTaskService {

    @Autowired
    private DlxjPatrtolTaskMapper dlxjPatrtolTaskMapper;

    @Override
    public void saveTask(DlxjPatrtolTask dlxjPatrtolTask) {
        dlxjPatrtolTaskMapper.saveTask(dlxjPatrtolTask);


        dlxjPatrtolTaskMapper.savePatrolUsers(dlxjPatrtolTask);
    }
}
